import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ListComponent } from './list/list.component';
import { RouterModule, Routes } from '@angular/router';
import { SharedModule } from '../../shared/shared.module';
import { ListCardComponent } from './list-card/list-card.component';
import { EditComponent } from './edit/edit.component';

const routes: Routes = [
  {path: 'list', component: ListComponent},
  {path: 'edit', component: EditComponent},
  {path: 'new', component: EditComponent},
];


@NgModule({
  declarations: [
    ListComponent,
    ListCardComponent,
    EditComponent,
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ],
})
export class BookModule {
}
